import Mock from "mockjs";

let data = Mock.mock({
    "list|3": [
        {
            "key|+1": 1,
            "navTitle|+1": ["综合排序", "销量最高", "离我最近"],
            "children|5": [
                {
                    "id|+1": 1,
                    img: "@image(80x80,@color)",
                    title: "@ctitle",
                    "children|4": [
                        {
                            "id|+1": 1,
                            "navTitle|+1": ["热销", "折扣", "套餐", "伴侣"],
                            "children|6": [
                                {
                                    "id|+1": 1,
                                    img: "@image(80x80,@color)",
                                    title: "@ctitle",
                                    "price|10-100": 1
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
});
Mock.mock("/list", "get", () => {
    return data;
});
